<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "order_offline".
 *
 * @property int $id
 * @property string $user_name 租赁方
 * @property string $agreement_name 合同名称
 * @property string $date_range 租赁期限
 * @property string $money 订单金额
 * @property string $intro 订单明细
 * @property string $product 产品名称
 * @property string $code 社会信用代码
 * @property string $contact_user_name 联系人
 * @property string $contact_phone 联系人电话
 * @property int $created_at 创建时间
 */
class OrderOffline extends Base
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'order_offline';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['money', 'money_yf', 'unit_prize'], 'number'],
            [['intro'], 'string'],
            [['num', 'date_num', 'created_at'], 'integer'],
            [['user_name', 'specs', 'agreement_name', 'date_start', 'date_end', 'product', 'code', 'contact_user_name', 'contact_phone'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_name' => 'User Name',
            'agreement_name' => 'Agreement Name',
            'date_range' => 'Date Range',
            'money' => 'Money',
            'intro' => 'Intro',
            'product' => 'Product',
            'code' => 'Code',
            'contact_user_name' => 'Contact User Name',
            'contact_phone' => 'Contact Phone',
            'created_at' => 'Created At',
        ];
    }
}
